{include file="public_head" /}
<!-- upload -->
<link href="__STATIC__/css/uploads.css" rel="stylesheet">
<!-- Select2 -->
<link href="__STATIC__/css/select/select2.min.css" rel="stylesheet">


<body class="nav-md">

<div class="container body">

    <div class="main_container">

        {include file="public_sidebar,public_nav" /}
        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">

                <div class="page-title">
                    <!--<div class="title_left">-->
                        <!--<h3>广告位管理</h3>-->
                    <!--</div>-->
                </div>
                <div class="clearfix"></div>
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>人员编辑
                                    <!--<small>different form elements</small>-->
                                </h2>
                                <ul class="nav navbar-right panel_toolbox">
                                    <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                    </li>
                                    <li><a class="close-link"><i class="fa fa-close"></i></a>
                                    </li>
                                </ul>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <br/>
                                <form class="form-horizontal form-label-left" enctype="multipart/form-data" action="" method="post" id="registerForm">

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">人员姓名：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <input type="text" placeholder="请输入人员姓名"
                                                   class="form-control col-md-7 col-xs-12" name="name"
                                                   value="{$item.name|default=''}"
                                                   datatype="*"
                                                   nullmsg="请输入人员姓名！" errormsg="请输入人员姓名"
                                            >
                                        </div>
                                    </div>
									<div class="form-group" style=" margin-top:10px;margin-bottom:0px">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">岗位：</label>
                                         <div class="input-group col-md-2 col-sm-3 col-xs-4" style="float: left; margin-left:11px; width:750px;">
                                            <!--<select name="post" class="select2_single" style="width: 100%;"
                                                    tabindex="-1">
                                                {volist name="data" id="item1"}
                                                	<option value="{$item1.id}" {eq name='$item.post|default=""' value='$item1.id' }selected{/eq}>{$item1.title}</option>
                                                {/volist}
                                            </select>-->
                                            {volist name="data" id="item1"}
                                            	<div style=" width:auto; height:20px; display:inline; float:left; margin-top:5px;">
                                            		<input style=" margin-left:10px;" id="xz_{$item1.id}" type="checkbox" name="post[]" value="{$item1.id}" {in name="item1.id" value='$item.post|default=""'}checked{/in}>
                                                	<label for="xz_{$item1.id}" style=" font-size:15px; font-family:'微软雅黑';">{$item1.title}</label>
                                                </div>
                                            {/volist}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">登录手机号：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <input type="text" placeholder="请输入登录手机号" datatype="s11-11"
                                                   class="form-control col-md-7 col-xs-12" name="telephone"
                                                   value="{$item.telephone|default=''}"

                                                   nullmsg="请填写登录手机号"  errormsg="用户名输入11位手机号"
                                            >
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">密码：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <input type="text" placeholder="请输入密码"
                                                   class="form-control col-md-7 col-xs-12" name="password"
                                                   value="{$item.password|default=''}"
                                                   datatype="s6-18"
                                                   nullmsg="请输入密码！" errormsg="请输入6-18位密码"
                                            >
                                        </div>
                                    </div>
									<div class="form-group" style=" margin-top:10px;margin-bottom:0px">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">权限：</label>
                                         <div class="input-group col-md-2 col-sm-3 col-xs-4" style="float: left; margin-left:11px; width:750px;">
                                            <!--<select name="post" class="select2_single" style="width: 100%;"
                                                    tabindex="-1">
                                                {volist name="data" id="item1"}
                                                	<option value="{$item1.id}" {eq name='$item.post|default=""' value='$item1.id' }selected{/eq}>{$item1.title}</option>
                                                {/volist}
                                            </select>-->
                                            	<div style=" width:auto; height:20px; display:inline; float:left; margin-top:5px;">
                                            		<input style=" margin-left:10px;" id="xz_1" type="radio" name="status_zt" value="1" {eq name='$item.status_zt|default="1"' value='1' }checked{/eq}>
                                                	<label for="xz_1" style=" font-size:15px; font-family:'微软雅黑';">正常</label>
                                                </div>
                                                <div style=" width:auto; height:20px; display:inline; float:left; margin-top:5px;">
                                            		<input style=" margin-left:10px;" id="xz_2" type="radio" name="status_zt" value="2" {eq name='$item.status_zt|default="1"' value='2' }checked{/eq}>
                                                	<label for="xz_2" style=" font-size:15px; font-family:'微软雅黑';">先销售</label>
                                                </div>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                                            <button type="submit" class="btn btn-primary">提交</button>
                                            <a type="reset" class="btn btn-success" onClick="history.go(-1)">返回</a>
                                        </div>
                                    </div>

                                </form>
                            </div>
                        </div>
                    </div>
                </div>


            </div>
            <!-- /page content -->

        </div>

    </div>
</div>

{include file="public_foot" /}

<!-- Datatables-->
<script src="__STATIC__/js/datatables/jquery.dataTables.min.js"></script>
<script src="__STATIC__/js/datatables/dataTables.bootstrap.js"></script>
<!-- validform -->
<script src="__STATIC__/js/Validform_v5.3.2_min.js"></script>
<script src="__STATIC__/js/layer.js"></script>
<!--select-->
<script src="__STATIC__/js/select/select2.full.min.js"></script>
<!--upload-->
<script type="text/javascript" src="__STATIC__/js/uploadPreview.js"></script>

<!-- ueditor -->
<script type="text/javascript" charset="utf-8" src="__STATIC__/editor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__STATIC__/editor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="__STATIC__/editor/lang/zh-cn/zh-cn.js"></script>
<script>
    //upload
    window.onload = function () {
        new uploadPreview({UpBtn: "up_img", DivShow: "imgdiv", ImgShow: "imgShow"});
    }
    // 实例化编辑器
    var ue = UE.getEditor('containers');
    //validform
    $(function () {

        $.Tipmsg.r = null;

        var showmsg = function (msg) {
            //假定你的信息提示方法为showmsg， 在方法里可以接收参数msg，当然也可以接收到o及cssctl;
            alert(msg);
        }
        $("#registerForm").Validform({
            tiptype: function (msg) {
                layer.msg(msg);
            },
            tipSweep: true
        });


        // select2
        $(".select2_single").select2({
            placeholder: "请选择分类",
            allowClear: true
        });

        $(".select2_multiple").select2({
            maximumSelectionLength: 0,
            placeholder: "请选择关联品牌",
            allowClear: true
        });

    })
</script>
</body>

</html>
